package com.iwhalecloud.bss.kite.cucc.service.util;

import com.iwhalecloud.bss.kite.common.util.SnowflakeUtils;
import com.ztesoft.bss.common.util.ContextUtil;

/**
 * @Author: Zhu
 * @Date: 2020/5/11
 */
public class SeqNumberUtils {

    public static String getSeqNumber(String i) {
        //区域编码
        String lanId = ContextUtil.getLandId();
        //6位序列号
        String serialNo = SnowflakeUtils.generateId().toString();
        serialNo = serialNo.substring(serialNo.length() - 6);
        StringBuilder seq = new StringBuilder(lanId).append(i).append(serialNo);
        return seq.toString();
    }

}
